/******************************
 * @Developer: many
 * @File: settime_linux.go
 * @Time: 2022/4/28 9:33
******************************/

package lib

import (
	"syscall"
	"time"
)

func UpdateSystemDateTime(t *time.Time) error {
	tv := syscall.NsecToTimeval(t.UnixNano())
	return syscall.Settimeofday(&tv)
}
